package com.sky.order.domain.common;

import lombok.*;

import java.io.Serializable;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
public class Response<T> implements Serializable {

    private static final long serialVersionUID = 4060218749228220124L;
    private String code;

    private String message;

    private T data;


    @Getter
    public enum ResStatus {

        SUCCESS("0000", "调用成功"),
        ERROR("0001", "未知错误");

        private String code;

        private String info;

        ResStatus(String code, String info) {
            this.code = code;
            this.info = info;
        }
    }

}
